﻿namespace BlueportCoffee.model
{
    public class IPorPortInfo
    {
        private static IPorPortInfo instance;
        private IPorPortInfo() { }
        public static IPorPortInfo Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new IPorPortInfo();
                }
                return instance;
            }
        }
        /// <summary>
        /// 咖啡机ip
        /// </summary>
        public string CoffeeIP { get; set; } = "192.168.10.113";
        /// <summary>
        /// 咖啡机端口号
        /// </summary>
        public string CoffeePort { get; set; } = "444";
        /// <summary>
        /// productId
        /// </summary>
        public string ProductId { get; set; } = "BLMBWQH7N9";
        /// <summary>
        /// deviceName
        /// </summary>
        public string DeviceName { get; set; } = "robot_drink_00000001";
        /// <summary>
        /// token
        /// </summary>
        public string token { get; set; } = "linekong123";
        /// <summary>
        /// 机械臂左臂ip
        /// </summary>
        public string RobotIPLeft { get; set; } = "192.168.10.10";
        /// <summary>
        /// 奶茶ip
        /// </summary>
        public string MilkTeaIP { get; set; } = "192.168.10.148";
        /// <summary>
        /// 奶茶端口号
        /// </summary>
        public string MilkTeaPort { get; set; } = "8000";
        /// <summary>
        /// 其他通讯串口名
        /// </summary>
        public string PortName { get; set; } = "com2";
        /// <summary>
        /// IO查询
        /// </summary>
        public string PortNameShow { get; set; } = "com1";
        /// <summary>
        /// 二维码串口名
        /// </summary>
        public string EWMPortName { get; set; } = "com3";
        /// <summary>
        /// 制冰通讯串口名
        /// </summary>
        public string ZBPortName { get; set; } = "com4";
        /// <summary>
        /// 热水串口名
        /// </summary>
        public string WaterPortName { get; set; } = "com7";
        /// <summary>
        /// 咖啡机通讯串口名
        /// </summary>
        public string CoffeePortName { get; set; } = "com3";
        public int RobotPortLeft { get; set; } = 502;
        public int RobotPortRight { get; set; } = 6503;
        public double SugarInit1 { get; set; } = 3;
        public double SugarInit2 { get; set; } = 3;
        public double SugarInit3 { get; set; } = 3;
        /// <summary>
        /// 冰量
        /// </summary>
        public double IceCoffee { get; set; } = 1;
        /// <summary>
        /// 奶茶量
        /// </summary>
        public double IceMilk { get; set; } = 1;
    }
}
